/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */

package com.xw.app.vo.query;


import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;

import com.xw.framework.annotation.ColumnQuery;
import com.xw.framework.annotation.Operator;
import com.xw.framework.base.page.BaseQuery;
import com.xw.util.DateUtil;


/**
 * The Class AcctUserQuery.
 *
 * @author Xi Wei
 */
public class AcctUserQuery extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;
    

	/** id */
	private java.lang.Long id;
	/** loginName */
	private java.lang.String loginName;
	/** userName */
	private java.lang.String userName;
	/** gender */
	private Short gender;
	/** password */
	private java.lang.String password;
	/** mobilePhone */
	private java.lang.String mobilePhone;
	/** homePhone */
	private java.lang.String homePhone;
	/** workPhone */
	private java.lang.String workPhone;
	/** lastLoginDate */
	@DateTimeFormat(pattern="dd/MM/yyyy")
	private java.util.Date lastLoginDateBegin;
	@DateTimeFormat(pattern="dd/MM/yyyy")
	private java.util.Date lastLoginDateEnd;
	
	private Long systemId;

	
	/**
	 * Gets the id.
	 *
	 * @return the id
	 */
	@ColumnQuery
	public java.lang.Long getId() {
		return this.id;
	}
	
	/**
	 * Sets the id.
	 *
	 * @param value the new id
	 */
	public void setId(java.lang.Long value) {
		this.id = value;
	}
	
	
	/**
	 * Gets the system id.
	 *
	 * @return the system id
	 */
	@ColumnQuery(addIsNull=false)
	public Long getSystemId() {
		return systemId;
	}

	/**
	 * Sets the system id.
	 *
	 * @param systemId the new system id
	 */
	public void setSystemId(Long systemId) {
		this.systemId = systemId;
	}

	/**
	 * Gets the login name.
	 *
	 * @return the login name
	 */
	@ColumnQuery
	public java.lang.String getLoginName() {
		return this.loginName;
	}
	
	/**
	 * Sets the login name.
	 *
	 * @param value the new login name
	 */
	public void setLoginName(java.lang.String value) {
		this.loginName = value;
	}
	
	
	
	/**
	 * Gets the user name.
	 *
	 * @return the user name
	 */
	@ColumnQuery(operator=Operator.LIKE)
	public java.lang.String getUserName() {
		return this.userName;
	}
	
	/**
	 * Sets the user name.
	 *
	 * @param value the new user name
	 */
	public void setUserName(java.lang.String value) {
		this.userName = value;
	}
	
	
	
	/**
	 * Gets the gender.
	 *
	 * @return the gender
	 */
	@ColumnQuery
	public Short getGender() {
		return this.gender;
	}
	
	/**
	 * Sets the gender.
	 *
	 * @param value the new gender
	 */
	public void setGender(Short value) {
		this.gender = value;
	}
	
	
	
	/**
	 * Gets the password.
	 *
	 * @return the password
	 */
	@ColumnQuery
	public java.lang.String getPassword() {
		return this.password;
	}
	
	/**
	 * Sets the password.
	 *
	 * @param value the new password
	 */
	public void setPassword(java.lang.String value) {
		this.password = value;
	}
	
	
	
	/**
	 * Gets the mobile phone.
	 *
	 * @return the mobile phone
	 */
	@ColumnQuery
	public java.lang.String getMobilePhone() {
		return this.mobilePhone;
	}
	
	/**
	 * Sets the mobile phone.
	 *
	 * @param value the new mobile phone
	 */
	public void setMobilePhone(java.lang.String value) {
		this.mobilePhone = value;
	}
	
	
	
	/**
	 * Gets the home phone.
	 *
	 * @return the home phone
	 */
	@ColumnQuery
	public java.lang.String getHomePhone() {
		return this.homePhone;
	}
	
	/**
	 * Sets the home phone.
	 *
	 * @param value the new home phone
	 */
	public void setHomePhone(java.lang.String value) {
		this.homePhone = value;
	}
	
	
	
	/**
	 * Gets the work phone.
	 *
	 * @return the work phone
	 */
	@ColumnQuery
	public java.lang.String getWorkPhone() {
		return this.workPhone;
	}
	
	/**
	 * Sets the work phone.
	 *
	 * @param value the new work phone
	 */
	public void setWorkPhone(java.lang.String value) {
		this.workPhone = value;
	}
	
	
	
	/**
	 * Gets the last login date begin.
	 *
	 * @return the last login date begin
	 */
	@ColumnQuery(name="lastLoginDate",operator=Operator.GREATERTHANEQUAL)
	public java.util.Date getLastLoginDateBegin() {
		return this.lastLoginDateBegin;
	}
	
	/**
	 * Sets the last login date begin.
	 *
	 * @param value the new last login date begin
	 */
	public void setLastLoginDateBegin(java.util.Date value) {
		this.lastLoginDateBegin = value;
	}	
	
	/**
	 * Gets the last login date end.
	 *
	 * @return the last login date end
	 */
	@ColumnQuery(name="lastLoginDate",operator=Operator.LESSTHANEQUAL)
	public java.util.Date getLastLoginDateEnd() {
		return DateUtil.getEndOfTheDay(this.lastLoginDateEnd);
	}
	
	/**
	 * Sets the last login date end.
	 *
	 * @param value the new last login date end
	 */
	public void setLastLoginDateEnd(java.util.Date value) {
		this.lastLoginDateEnd = value;
	}
	

	
}

